package cn.myframe.service.sys.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.myframe.dao.sys.SysLogDao;
import cn.myframe.entity.sys.SysLogConfig;
import cn.myframe.entity.sys.SysLogEntity;
import cn.myframe.service.BaseServiceImpl;
import cn.myframe.service.sys.SysLogService;



@Service("sysLogService")
public class SysLogServiceImpl extends BaseServiceImpl<SysLogDao,SysLogEntity> implements SysLogService {

	@Autowired
	private SysLogDao sysLogDao;
	
	@Override
	public SysLogConfig querySysLogConfig() {
		return sysLogDao.querySysLogConfig();
	}
	

	@Override
	public void saveSysLogConfig(SysLogConfig sysLogConfig) {
		sysLogDao.saveSysLogConfig(sysLogConfig);
	}


	@Override
	public void updateSysLogConfig(SysLogConfig sysLogConfig) {
		sysLogDao.updateSysLogConfig(sysLogConfig);
	}

	@Override
	public List<SysLogEntity> queryBackupLogs(SysLogEntity sysLog) {
		return sysLogDao.queryBackupLogs(sysLog);
	}

	@Override
	public void deleteByEntity(SysLogEntity sysLog) {
		sysLogDao.deleteByEntity(sysLog);
	}

	@Override
	public List<SysLogEntity> queryMtBackupLogs(String beginTime, String endTime) {
		return sysLogDao.queryMtBackupLogs(beginTime,endTime);
	}

	@Override
	public void deleteMtBackupLogs(String beginTime, String endTime) {
		sysLogDao.deleteMtBackupLogs(beginTime,endTime);
	}

	@Override
	public Long querySysLogSequence() {
		return sysLogDao.querySysLogSequence();
	}
	
	
}
